<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript">
$(function(){
	$('#kaptchaImage').click(     
	        function() {     
	           $(this).hide().attr('src','${pageContext.request.contextPath}/captcha-image.do?' + Math.floor(Math.random() * 100)).fadeIn();     
	});
});
</script>
</head>
<body>
	欢迎登录<br/>
	<form action="<%=request.getContextPath()%>/user/doLogin.do" method="post">
		<input type="text" name="username"/><br/>
		<input type="password" name="password">
		<div>
			<input class="captcha" name="captcha" type="text" id="captcha"  />
			<img src="${pageContext.request.contextPath}/captcha-image.do" width="55px" height="20px" id="kaptchaImage"  style="margin-bottom: -3px"/>
		</div>
		<input type="submit" value="登录">
	</form>
</body>
</html>